package com.lecing.data.entity;

import java.util.Date;

/**
 * 小区信息
 * Created by LIUCS on 2018/5/10.
 */
public class Community {
    private long id;  //ID db自增
    private String comtyName;   //小区名称
    private String comtyNo; //小区编号
//    private String comtyImg;    //小区图片
    private String comtyAddr; //小区地址
    private String cityNo=""; //地市
    private String areaCode; //所属区域
    private double longitude; //经度
    private double latitude; //纬度
    private Date crtime; //创建时间

    public Community() {
    }

    public Community( String cityNo,String comtyNo,String comtyName, String comtyAddr,String areaCode,double longitude, double latitude,Date crtime) {
        this.cityNo=cityNo;
        this.comtyNo = comtyNo;
        this.comtyName = comtyName;
        this.comtyAddr=comtyAddr;
        this.areaCode=areaCode;
        this.longitude = longitude;
        this.latitude = latitude;
        this.crtime = crtime;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getComtyName() {
        return comtyName;
    }

    public void setComtyName(String comtyName) {
        this.comtyName = comtyName;
    }

    public String getComtyNo() {
        return comtyNo;
    }

    public void setComtyNo(String comtyNo) {
        this.comtyNo = comtyNo;
    }

    public String getComtyAddr() {
        return comtyAddr;
    }

    public void setComtyAddr(String comtyAddr) {
        this.comtyAddr = comtyAddr;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(long longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(long latitude) {
        this.latitude = latitude;
    }

    public Date getCrtime() {
        return crtime;
    }

    public void setCrtime(Date crtime) {
        this.crtime = crtime;
    }

    @Override
    public String toString() {
        return "Community{" +
                "comtyName='" + comtyName + '\'' +
                ", comtyNo='" + comtyNo + '\'' +
                ", comtyAddr='" + comtyAddr + '\'' +
                ", cityNo='" + cityNo + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                ", crtime=" + crtime +
                '}';
    }
}
